how I optimized minecraft in c